export default [
    //注意 子路由有两种写法 ① 写/时 路径要一级一级写，要写全
    //                    ② 不写/时  只写当前路径
    //学生信息录入
    {
        path: "StuInfoEntry",
        name: "StuInfoEntry",
        component: () => import("@/views/stuinfo/StuInfoEntry.vue"),
        meta:[
            {
                name:'主页',
                url:'/home',
            },
            {
                name:"学生信息录入"
            }
        ],
    },
    //学生信息查询
    {
        path: "StuInfoSelect",
        name: "StuInfoSelect",
        component: () => import("@/views/stuinfo/StuInfoSelect.vue"),
        meta: [
            {
                name: '主页',
                url: '/home'
            },
            {
                name: '学生信息查询'
            }
        ],
        children: [
            //所以学生
            {
                path: 'AllInfo',
                name: 'AllInfo',
                component: () => import("@/views/stuInfoSelect/AllInfo.vue"),
                meta:[
                    {
                        name:'主页',
                        url:'/home',
                    },
                    {
                        name:"学生信息查询",
                        url:"/home/stuInfoSelect"
                    },
                    {
                        name:'所有学生信息查询'
                    }
                ],

            },
            //某个学生
            {
                path: 'PersonallInfo',
                name: 'PersonallInfo',
                component: () => import("@/views/stuInfoSelect/PersonallInfo.vue"),
                meta: [
                    {
                        name: "主页",
                        url: '/home'
                    },
                    {
                        name: '学生信息查询',
                        url:'/home/StuInfoSelect'
                    },
                    {
                        name:'某个学生信息查询'
                    }
                ],
            },

        ]
    },

    //摄像头
    {
        path: "cameraUpload",
        name: "cameraUpload",
        component: () => import("@/views/stuinfo/CameraUpload.vue")
    },

    //带头像的学生信息
    {
        path:'/home/HaveHeader',
        name:'HaveHeader',
        component:()=>import("@/views/stuInfoSelect/HaveHeader.vue"),
        meta: [
            {
                name: "主页",
                url: '/home'
            },
            {
                name: '学生信息查询',
                url:'/home/StuInfoSelect'
            },
            {
                name:'所有学生信息查询',
                url:'/home/StuInfoSelect/AllInfo'
            },
            {
                name:'带头像的学生信息查询'
            }
        ],

    },
    //测试后台分页
    {   
        path:"houTaiFenYe",
        name:"houTaiFenYe",
        component:()=>import("@/views/stuInfoSelect/HouTaiFenYe.vue")
    },
    //不带头像的学生信息
    {
        path:'/home/noHeader',
        name:'noHeader',
        component:()=>import("@/views/stuInfoSelect/NoHeader.vue"),
        meta: [
            {
                name: "主页",
                url: '/home'
            },
            {
                name: '学生信息查询',
                url:'/home/StuInfoSelect'
            },
            {
                name:'所有学生信息查询',
                url:'/home/StuInfoSelect/AllInfo'
            },
            {
                name:'不带头像的学生信息查询'
            }
        ],

    },

    //具体某个学生的信息详情
    {
        path:"stuDetail",
        name:"stuDetail",
        component:()=>import('@/views/stuInfoSelect/StuDetail.vue'),
        meta: [
            {
                name: "主页",
                url: '/home'
            },
            {
                name: '学生信息查询',
                url:'/home/StuInfoSelect'
            },
            {
                name:'所有学生信息查询',
                url:'/home/StuInfoSelect/AllInfo'
            },
            {
                path:"home/HaveHeader",
                name:'带头像的学生信息查询'
            },
            {
                name:"学生信息详情"
            }
        ],
    },
    {
        path:'gradeAnalysis',
        name:'gradeAnalysis',
        component:()=>import('@/views/Cj/GradeAnalysis.vue'),
        meta:[
            {
                name:'主页',
                url:'/home',
            },
            {
                name:"成绩分析"
            }
        ],

    },
    {
        path:"EntryCha",
        name:"EntryCha",
        component:()=>import('@/views/cjstu/entyr/EntryCha.vue')
    },

    {
        path:"EntryLuRu",
        name:"EntryLuRu",
        component:()=>import('@/views/cjstu/entyr/EntryLuRu.vue')
    },

    {
        path:"MidCha",
        name:"MidCha",
        component:()=>import('@/views/cjstu/mid/MidCha.vue')
    },

    {
        path:"MidLuRu",
        name:"MidLuRu",
        component:()=>import('@/views/cjstu/mid/MidLuRu.vue')
    },

    {
        path:"EndCha",
        name:"EndCha",
        component:()=>import('@/views/cjstu/end/EndCha.vue')
    },

    {
        path:"EndLuRu",
        name:"EndLuRu",
        component:()=>import('@/views/cjstu/end/EndLuRu.vue')
    }

]